package com.suoluo.zenapp.service.user;

import org.springframework.beans.factory.annotation.Autowired;

import com.suoluo.zenapp.dao.user.UserDAO;
import com.suoluo.zenapp.pojo.user.UserPOJO;

public class UserServiceImpl implements UserService {

	@Autowired
	private UserDAO userDAO;

	@Override
	public boolean findUser(String userName, String password) {
		UserPOJO user = userDAO.findUser(userName, password);
		if (user != null) {
			return true;
		} else {
			return false;
		}
	}

}
